import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { InformationDetailComponent } from './information-detail/information-detail.component';
import { InformationListComponent } from './information-list/information-list.component';
import { InformationComponent } from './information.component';
import { HallAddressComponent } from './hall-address/hall-address.component';
import { ColumnListComponent } from './column-list/column-list.component';

const routes: Routes = [
  { path: 'information', component: InformationComponent, data: { breadcrumb: '公告信息' }, 
    children: [
      // { path: 'list', component: InformationListComponent },
      { path: 'column-list', component: ColumnListComponent },
      { path: 'detail', component: InformationDetailComponent, data: { breadcrumb: '详情' } },
      { path: 'hall-address', component: HallAddressComponent, data: { breadcrumb: '营业网点' } },
      { path: '**', redirectTo: '/information/column-list' }
    ]

  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class InformationRoutingModule { }
